package com.njust.enums;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/3/10 上午10:20
 */
public enum FaultRank {


    WARN(2,"warn"),
    ALARM(1,"alarm"),
    ABNORMAL(3,"abnormal");

    private final int code;

    private final String msg;

    FaultRank(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
